/* Account.java
 *
 * Author:	Malcolm Staudacher
 * Date:	Oct 31, 2008
 *
 */

package fhv.itb.ec.atm;

public class Account {

	private int m_acctNum;
	private float m_balance;


	public Account(int acctNum, float balance) {
		m_acctNum = acctNum;
		m_balance = balance;
	}


	public float getBalance() {
		return m_balance;
	}


	public void deposit(float amount) {
		m_balance += amount;
	}


	public void withdraw(float amount) {
		m_balance -= amount;
	}


	public int getAcctNum() {
		return m_acctNum;
	}

}
